package com.zhitan.ems.app.iot.service;
import java.util.List;

import com.zhitan.ems.app.iot.entity.DeviceGroupEntity;
import com.zhitan.ems.app.iot.vo.DeviceGroupVO;
import com.zhitan.ems.framework.core.mp.base.BaseService;

/**
 * 设备分组
 * @author zhitan
 * 
 * @date 2025-09-19 22:15:46
 */
public interface DeviceGroupService extends BaseService<DeviceGroupEntity> {

	List<DeviceGroupVO> getByDeviceId(Long deviceId,Integer state);
	List<DeviceGroupVO> getByGroupId(Long groupId, Integer state);

	boolean modState(Long groupId,Long deviceId, Integer groupType, Integer state);
	List<DeviceGroupEntity> listByGroupId(Long groupId,Integer energyType ,Integer state);
	List<DeviceGroupEntity> listByGroupDeviceId(Long deviceId, Integer state);
	List<DeviceGroupEntity> listByGroupId(List<Long> groupIds, Integer energyType, Integer state);
}

